.\"     $OpenBSD: skgpio.4,v 1.1 2014/12/10 05:42:25 jsg Exp $
.\"
.\" Copyright (c) 2014 Matt Dainty <matt@bodgit-n-scarper.com>
.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
.Dd $Mdocdate: December 10 2014 $
.Dt SKGPIO 4 amd64
.Os
.Sh NAME
.Nm skgpio
.Nd Soekris net6501 GPIO and LEDs
.Sh SYNOPSIS
.Cd "skgpio0 at isa? port 0x680"
.Cd "gpio* at skgpio?"
.Sh DESCRIPTION
The
.Nm
driver provides support for the GPIO and LEDs as implemented by the Xilinx
Spartan FGPA integrated into the Soekris net6501 programmed with the default
bitstream found in the BIOS.
.Pp
Two standard
.Xr gpio 4
interfaces are provided, one for the 16 real pins which can be configured as
either inputs or outputs and another with 2 output-only pins that map
to the error and ready LEDs respectively.
Both may be used with
.Xr gpioctl 8 .
.Sh SEE ALSO
.Xr gpio 4 ,
.Xr intro 4 ,
.Xr isa 4 ,
.Xr gpioctl 8
.Sh HISTORY
The
.Nm
driver first appeared in
.Ox 5.7 .
.Sh AUTHORS
The
.Nm
driver was written by
.An Matt Dainty Aq matt@bodgit-n-scarper.com .
.Sh BUGS
If the Xilinx FPGA is programmed with a different bistream, the driver will
likely not function.
